package com.ruoyi.buss.qmcy.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.buss.qmcy.mapper.QmcyXykXjfqMapper;
import com.ruoyi.buss.qmcy.domain.QmcyXykXjfq;
import com.ruoyi.buss.qmcy.service.IQmcyXykXjfqService;

/**
 * 贷记卡现金分期业务Service业务层处理
 * 
 * @author sxy
 * @date 2021-07-16
 */
@Service
public class QmcyXykXjfqServiceImpl implements IQmcyXykXjfqService 
{
    @Autowired
    private QmcyXykXjfqMapper qmcyXykXjfqMapper;

    /**
     * 查询贷记卡现金分期业务
     * 
     * @param name 贷记卡现金分期业务ID
     * @return 贷记卡现金分期业务
     */
    @Override
    public QmcyXykXjfq selectQmcyXykXjfqById(String name)
    {
        return qmcyXykXjfqMapper.selectQmcyXykXjfqById(name);
    }

    /**
     * 查询贷记卡现金分期业务列表
     * 
     * @param qmcyXykXjfq 贷记卡现金分期业务
     * @return 贷记卡现金分期业务
     */
    @Override
    public List<QmcyXykXjfq> selectQmcyXykXjfqList(QmcyXykXjfq qmcyXykXjfq)
    {
        return qmcyXykXjfqMapper.selectQmcyXykXjfqList(qmcyXykXjfq);
    }

    /**
     * 新增贷记卡现金分期业务
     * 
     * @param qmcyXykXjfq 贷记卡现金分期业务
     * @return 结果
     */
    @Override
    public int insertQmcyXykXjfq(QmcyXykXjfq qmcyXykXjfq)
    {
        return qmcyXykXjfqMapper.insertQmcyXykXjfq(qmcyXykXjfq);
    }

    /**
     * 修改贷记卡现金分期业务
     * 
     * @param qmcyXykXjfq 贷记卡现金分期业务
     * @return 结果
     */
    @Override
    public int updateQmcyXykXjfq(QmcyXykXjfq qmcyXykXjfq)
    {
        return qmcyXykXjfqMapper.updateQmcyXykXjfq(qmcyXykXjfq);
    }

    /**
     * 批量删除贷记卡现金分期业务
     * 
     * @param names 需要删除的贷记卡现金分期业务ID
     * @return 结果
     */
    @Override
    public int deleteQmcyXykXjfqByIds(String[] names)
    {
        return qmcyXykXjfqMapper.deleteQmcyXykXjfqByIds(names);
    }

    /**
     * 删除贷记卡现金分期业务信息
     * 
     * @param name 贷记卡现金分期业务ID
     * @return 结果
     */
    @Override
    public int deleteQmcyXykXjfqById(String name)
    {
        return qmcyXykXjfqMapper.deleteQmcyXykXjfqById(name);
    }
}
